package com.heqiang;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;


//声明该类是一个SpringBoot引导类(相当于三个注解)
@SpringBootApplication
@EntityScan("com.heqiang.model.manage")//扫描实体类
@ComponentScan(basePackages={"com.heqiang.api"})//扫描接口
@ComponentScan(basePackages={"com.heqiang.manage"})//扫描本项目下所有类
@EnableFeignClients//开启feignclient
@EnableDiscoveryClient//发现服务,注册自己到eureka
public class ManageApplication {
    public static void main(String[] args) {
        SpringApplication.run(ManageApplication.class);
    }
}
